package com.ewzj.bigdata.app.constants;

import com.jess.arms.utils.ArmsUtils;
import com.umeng.socialize.UMShareListener;
import com.umeng.socialize.bean.SHARE_MEDIA;

/**
 * Created by just__soso on 2018/1/24.
 *
 * 存放键值和sp的key
 *
 */

public interface AppConstants {
     /**
      * app退出时间，编码不允许魔法值 
      */
     int EXIT_DURATION=200;
     /**
      * 服务器请求成功状态码
      */
     int REQUEST_SUCCESS = 0;


     /**
      * 是否第一次进入app的状态值
      */
     String IS_SHOW_SPLASH ="show_splash";
     /**
      * 推荐模块的二级菜单
      */

     String[] RECOMMEND_LAB={"推荐","公司","快讯","社会","视觉","服务"};

     String[] LOGIN_REGISTER={"登录","注册"};
     //城市id

     String CITY_ID="City_id";
     //     channel Id
     String Channel_Id="Channel_id";

     //
     int PAGE_NUM=10;

     //参数
     String FRAGMENT_ARG="fragment_arg";
     //
     String ISNEED_BANNER="isneedBanner";
     //
     String EXTRA_ID="extra_id";
     String EXTRA_DATA="extra_data";

     String EXTRA_DATA_STRING="extra_data_string";
//    全局的token
     String APP_TOKEN="app_token";
//     用户id
     String USER_ID="user_id";
//     友盟id
     String UEMNG_ID="591962efc62dca5cad00144d";
//
     String OSS_KEY="LTAIwPZym1WjPxOr";
     String OSS_SCRET="NB7YZX6nrppmCtE9XGkQ67k80xl1aH";
     String OSS_BUCKET="miwoattachments";
     String ENDPOINT="http://oss-cn-shanghai.aliyuncs.com";
     String USERID="APPUSERID";

     String APPHISTORY="apphistory";

//     上传成功地址前缀
     String OSS_PRE="http://miwoattachments.oss-cn-shanghai.aliyuncs.com/";
     UMShareListener umShareListener=new UMShareListener() {
          @Override
          public void onStart(SHARE_MEDIA share_media) {

          }

          @Override
          public void onResult(SHARE_MEDIA share_media) {
               ArmsUtils.snackbarText(" 分享成功啦");
          }

          @Override
          public void onError(SHARE_MEDIA share_media, Throwable throwable) {
               ArmsUtils.snackbarText(" 分享失败啦");
          }

          @Override
          public void onCancel(SHARE_MEDIA share_media) {
               ArmsUtils.snackbarText(" 取消分享");
          }
     };
}
